// 用户端专家信息
import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	// 获取专家列表--条件查询
	queryExpertInfo(params){
		let url = 'socialized-expert/person/queryExpertByCondition'
		return api.request(url,'post',{
			...params,
			completed: true
		})
	},
	// 近期回复帖子数量
	queryReplyNumber(serviceProviderNo) {
		let url = `socialized-expert/invitation/replayDiagnosticNum?serviceProviderNo=${serviceProviderNo}`
		return api.request(url,'get')
	},
	// 查询专家名额是否已满
	overOnlineNum (personId) {
		let url = `socialized-expert/chat/order/overOnlineNum?personId=${personId}`
		return api.request(url,'get')
	},
	// 创建咨询订单
	create (params) {
		let url = 'socialized-expert/chat/order/create'
		return api.request(url, 'post', params)
	},
}